
package com.taikang.hmp;

/** 
 * 常量类
 */
public class CommonConst  {
	
		
	//----------------------------------------捷创接口常量（HmpSbtFront）------------------------------------
	//分隔符
	public static final String  LINE_SEPARATOR = "\r\n";
	public static final char  SEPARATOR_CHAR_ENTER = '\r';
	public static final char  SEPARATOR_CHAR_RETURN = '\n';
	public static final String  SPACE_SEPARATOR = " ";

	//字符集编码
	public static final String  ENCODING = "UTF-8";
	//通信密码的MD5值
	public static final String  PASSWORD_MD5 = "qwertyui123456";
	//请求种类
	public static final String  REQ_CONNECT = "CONNECT";
	public static final String  REQ_LOGIN = "LOGIN";
	public static final String  REQ_QUIT = "QUIT";
	public static final String  REQ_XML = "XML";
	//----------------------------------------写文件（HmpFront）-------------------------------------------
	//输入报文文件夹
	public static final String  File_NAME_IN = "InStdXML";	
	//输出报文文件夹
	public static final String  File_NAME_OUT = "OutStdXML";
	//写到硬盘上的文件名的分隔符
	public static final String  File_NAME_SEPARATOR = "_";
	//----------------------------------------返回码（HmpSbtFront）-----------------------------------------	
	//连接成功标识
	public static final String  SUCCESS_CONNECT = "2001";
	//登录验证成功
	public static final String  SUCCESS_AUTHORITY = "2002";
	
	//登录验证失败
	public static final String  FAIL_AUTHORITY = "2003";
	//包解密失败
	public static final String  FAIL_PACKAGE_DECRYPT = "9001";
	//包解压失败
	public static final String  FAIL_PACKAGE_DECOMPRESS = "9002";
	//包校验失败
	public static final String  FAIL_PACKAGE_OTHER = "9003";
	//类型码无效
	public static final String  FAIL_NO_THIS_ACTION_TYPE = "9004";
	//没有接收到包
	public static final String  FAIL_NOPACKAGE = "9005";
	//创建日期无效
	public static final String  FAIL_VALID_CREATE_DATE = "9006";
	//登录因其他原因失败
	public static final String  FAIL_AUTH_OTHER = "9007";
	//包格式无效
	public static final String  FAIL_WRONG_PATTARN = "9008";
	//未知错误
	public static final String  FAIL_UNKOWN_ERROR = "9999";
	
	//----------------------------------------业务码（HmpFront）-----------------------------------------
	//医院信息更新
	public static final String  ACTION_CODE_HSPL_UPDATE = "2";	
	//医院医疗目录
	public static final String  ACTION_CODE_HSPL_ITEM = "4";	
	//平台统一医疗目录
	public static final String  ACTION_CODE_HMP_HSPL_ITEM = "5";	
	//上传处方
	public static final String  ACTION_CODE_UPLOAD_RECIPEL= "8";	
	//医院端处方上传
	public static final String  ACTION_CODE_HSPT_UPLOAD_RECIPEL = "14";
	//医院定点
	public static final String  ACTION_CODE_DESIGNATE_HOSPITAL = "1";
	//医院定点取消
	public static final String  ACTION_CODE_DESIGNATE_HOSPITAL_CANSEL = "3";
	//就诊申报
	public static final String  ACTION_CODE_MEDICAL_INFORMATION = "6";
	//就诊申报取消
	public static final String  ACTION_CODE_MEDICAL_INFORMATION_CANCEL = "7";
	//处方上传
	public static final String  ACTION_CODE_PRESCRIPT_UPLOAD = "8";
	//处方上传取消
	public static final String  ACTION_CODE_PRESCRIPT_UPLOAD_CANCEL = "9";
	//客户离院结算
	public static final String  ACTION_CODE_LEAVE_HOSPITAL = "10";
	//客户结算确定 
	public static final String  ACTION_CODE_CUSTOM_CONFIRM = "11";
	//电子病历上传
	public static final String  ACTION_CODE_MEDICAL_RECORD = "15";	
	//医院结算
	public static final String  ACTION_CODE_HSPT_APPLY = "13";
	//大病险基本医疗机构疾病字典接口
	public static final String  ACTION_CODE_BASIC_DIEASE = "21";	
	//大病险统一疾病字典接口
	public static final String  ACTION_CODE_DIEASE = "22";	
	//大病业务参保人信息上传
	public static final String  ACTION_CODE_INSURED_INFO = "23";		
	//大病险快速结算
	public static final String  ACTION_CODE_QUICK_BALANCE = "24";
	//客户结算取消 
	public static final String  ACTION_CODE_CANCEL_LVHSPL = "25";	
	//大病结算预警接口
	public static final String  ACTION_CODE_BALANCE_WARN = "26";	
	//大病结算转账信息查询接口
	public static final String  ACTION_CODE_CLAIM_CONF = "27";	
	//大病基本医疗机构疾病字典
	public static final String  ACTION_CODE_DBX_BASIC_DISEASE_INFO = "21";
	//大病统一疾病字典
	public static final String  ACTION_CODE_DBX_DISEASE_INFO = "22";
	//大病业务参保人信息上传
	public static final String  ACTION_CODE_DBX_INSURED_INFO = "23";
	//大病险快速结算
	public static final String  ACTION_CODE_DBX_QUICK_BALANCE = "24";
	//大病结算预警信息
	public static final String  ACTION_CODE_DBX_BALANCE_WARN = "26";
	//大病结算转账信息
	public static final String  ACTION_CODE_DBX_CLAIM_CONF = "27";
	
	
	//大病险快速结算返回码
	public static final String BACK_CODE_DBX_QUICK_BALANCE = "2412";
	//大病险快速结算返回码
	public static final String BACK_CODE_DBX_LEAVE_HOS_CANCEL = "2413";
	//大病结算转账信息返回码
	public static final String BACK_CODE_DBX_CLAIM_CONF = "2415";
	//大病业务参保人信息上传返回码
	public static final String BACK_CODE_DBX_INSURED_INFO = "2209";
	//大病基本医疗机构疾病字典返回码
	public static final String BACK_CODE_DBX_BASIC_DISEASE_INFO = "2608";
	//大病结算预警信息返回码
	public static final String BACK_CODE_DBX_BALANCE_WARN = "2414";
	//大病结算预警信息返回码
	public static final String BACK_CODE_HOSPITAL_APPLY = "2402";	
	//大病统一疾病字典返回码
	public static final String BACK_CODE_DBX_DISEASE_INFO = "2607";
	//医院定点返回码
	public static final String  BACK_CODE_DESIGNATE_HOSPITAL = "2104";
	//医院更新返回码
	public static final String  BACK_CODE_UPDATE_HOSPITAL = "2102";
	//医院定点返回码
	public static final String BACK_CODE_DESIGNATE_HOSPITAL_CANSEL = "2105";
	//就诊申报返回码
	public static final String BACK_CODE_MEDICAL_INFORMATION = "2201";
	//就诊申报取消返回码
	public static final String BACK_CODE_MEDICAL_INFORMATION_CANCEL = "2203";	
	//处方上传返回码
	public static final String BACK_CODE_PRESCRIPTION_UPLOAD = "2301";
	//处方取消返回码
	public static final String BACK_CODE_PRESCRIPTION_UPLOAD_CANCEL = "2302";
	//客户离院结算返回码
	public static final String BACK_CODE_LEAVE_HOSPITAL = "2401";
	//医院医疗目录
	public static final String BACK_CODE_HOSPITAL_LIST = "2603";	
	//统一医疗目录
	public static final String BACK_CODE_MEDICAL_LIST = "2606";	
	//统一医疗目录
	public static final String BACK_CODE_MEDICAL_RECORD = "2204";	
	//----------------------------------------数据库ID字段的格式（HmpFront）---------------------------------
	//SBTRGTNO
	public static final String  ID_RGT_FORMAT_PATTERN = "000000";
	//SERIAL  
	public static final String  ID_SERIAL_FORMAT_PATTERN = "00000000000000000000";	
	//FEE 
	public static final String  ID_FEE_FORMAT_PATTERN = "00000000000000000000";	
	//SBT
	public static final String  ID_SBT_FORMAT_PATTERN = "00000000000000";	
	//TPL模板名称(医院定点)
	public static final String  TPL_HOSPITAL = "hospital2104";
	//TPL模板名称(医院更新)
	public static final String  TPL_UPDATE_HOSPITAL = "updateHospital2102";	
	//TPL模板名称(医院定点取消)
	public static final String  TPL_HOSPITAL_CANCEL = "hospitalCancel2105";	
	//TPL模板名称(医院财务结算)
	public static final String  TPL_HOSPITAL_APPLY = "hospitalApply2402";	
	//TPL模板名称(医院医疗目录更新)
	public static final String  TPL_HOSPITAL_LIST = "hospitalList2603";	
	//TPL模板名称(统一医疗目录更新)
	public static final String  TPL_MEDICAL_LIST = "medicalList2606";		
	//TPL模板名称(就诊申报)
	public static final String  TPL_MEDICAL_INFORMATION = "medicalInformation2201";	
	//TPL模板名称(就诊申报取消)
	public static final String  TPL_MEDICAL_INFORMATION_CANCEL = "medicalInformationCancel2203";	
	//TPL模板名称(就诊申报取消失败)
	public static final String  TPL_MEDICAL_INFORMATION_CANCEL_FASLE = "medicalInformationCancel2203false";
	//TPL模板名称(处方上传)
	public static final String  TPL_PRESCRIPTION_UPLOAD = "prescriptionMain2301";	
	//TPL模板名称(处方上传取消)
	public static final String  TPL_PRESCRIPTION_UPLOAD_CANCEL = "prescriptionMainCancel2302";	
	//TPL模板名称(离院申请)
	public static final String  TPL_LEAVE_HOSPITAL = "leavehospital2401";
	
	//TPL模板名称(大病基本医疗机构疾病字典)
	public static final String  TPL_DBX_BASIC_DISEASE = "DBXBasicDisease2608";
	//TPL模板名称(大病统一疾病字典)
	public static final String  TPL_DBX_DISEASE = "DBXDisease2607";
	//TPL模板名称(大病业务参保人信息上传)
	public static final String  TPL_DBX_INSURED_INFO = "DBXInsuredInfo2209";
	//TPL模板名称(大病快速结算取消)
	public static final String  TPL_DBX_LEAVE_HOS_CANCEL = "DBXLeaveHospCancel2413";
	//TPL模板名称(大病快速结算)
	public static final String  TPL_DBX_QUICK_BALANCE = "DBXQuickBalance2412";
	//TPL模板名称(大病结算预警)
	public static final String  TPL_DBX_BALANCE_WARN = "DBXBalanceWarn2414";
	//TPL模板名称(客户确认)
	public static final String  TPL_CUSTOMER_CONFIRM = "customerConfirm";	
	//TPL模板名称(大病结算转账信息)
	public static final String  TPL_DBX_CLAIM_CONF = "DBXClaimConf2415";
	//TPL模板名称(大病结算转账信息) 没有处理成功的数据
	public static final String  TPL_DBX_CLAIM_CONF_ERROR = "DBXClaimConfError2415";
	//电子病历上传
	public static final String  TPL_MEDICAL_RECORD = "medicalRecord2204";	
	
	
	//加密key
	public static final String  ENCRYPT_KEY = "20MHIaHz1P338s3d6zyoebHU";	
	//文件路径
	public static final String  XML_PATH = "/home/weblogic/midplat/FileContent";
	
	
	
	
	
	
	
	
	
	
	
}
